import React, { Component } from 'react'
import {Route, Switch} from 'react-router-dom'
import './App.css';
import {BrowserRouter} from 'react-router-dom';

//引入页面
import Login from './pages/login'
import Admin from './pages/admin'

export default class App extends Component {
  render() {
    return (
      <div>
        <BrowserRouter>
        <Switch>
          <Route path="/login" component={Login}></Route>
          <Route path="/" component={Admin}></Route>
        </Switch>
        </BrowserRouter>
      </div>
    )
  }
}
